package com.lznAdmin.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lznAdmin.system.entity.SysPermission;

import java.util.List;

public interface SysPermissionService extends IService<SysPermission> {

    /**
     * @param userId 用户id
     * @return 用户所拥有的权限
     */
    List<SysPermission> findByUserId(Long userId);

    Boolean savePermission(SysPermission sysPermission);

    Boolean updatePermission(SysPermission sysPermission);


}
